import request from '@/utils/http'

export class OrgService {
	static pages(params:any) {
	  return request.post<any>({
	    url: '/sys/role/pages',
		params
	  })
	}
	
	static getLoadAll(params:any) {
	  return request.post<any>({
	    url: '/sys/org/load/all',
		params
	  })
	}
	
	static getLoadLazy(params:any) {
	  return request.post<any>({
	    url: '/sys/org/load/lazy',
		params
	  })
	}
	
	static options(params:any) {
	  return request.post<any>({
	    url: '/sys/org/select/tree',
		params
	  })
	}
	
	static save(params:any) {
	  return request.post<any>({
	    url: '/sys/org/save',
		params
	  })
	}
	
	static delete(id:string) {
	  return request.del<any>({
	    url: '/sys/org/detain/'+id,
	  })
	}
	
}

